import request from '@/utils/request'

// 查询检阅信息列表
export function listReview(query) {
    return request({
        url: '/spspublic/review/list',
        method: 'get',
        params: query
    })
}

// 查询检阅信息详细
export function getReview(ctId) {
    return request({
        url: '/spspublic/review/' + ctId,
        method: 'get'
    })
}

// 新增检阅信息
export function addReview(data) {
    return request({
        url: '/spspublic/review',
        method: 'post',
        data: data
    })
}

// 修改检阅信息
export function updateReview(data) {
    return request({
        url: '/spspublic/review/edit',
        method: 'post',
        data: data
    })
}

// 删除检阅信息
export function delReview(ctId) {
    return request({
        url: '/spspublic/review/delete/' + ctId,
        method: 'post'
    })
}

// 导出检阅信息
export function exportReview(query) {
    return request({
        url: '/spspublic/review/export',
        method: 'get',
        params: query
    })
}